var Mock = require('mockjs');
exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data": {
      "risk": {
        "id": "@integer(0,10000)",
        "name": "code@integer(0,10000)",
        "data": [
          {
            "name": "Calmar比率(%)",
            "key": "calmarRatio",
            // "min": 0,
            // "max": 5,
            // "value": "N/A"
            "min": -3.4802,
            "max": -2.8474,
            "value": -3.1638
          }, {
            "name": "净值未创新高(天)",
            "key": "daysUnderLastPeek",
            "min": 0,
            "max": 19,
            "value": 17
          }, {
            "name": "Jensen指数",
            "key": "jensenRatio",
            "min": -127,
            "max": -5,
            "value": -11
          }, {
            "name": "最大回撤率",
            "key": "maxDrawdown",
            "min": 0,
            "max": 15,
            "value": 3.53
          }, {
            "name": "Sharpe比率",
            "key": "sharpeRatio",
            "min": -9841,
            "max": -8051,
            "value": -8100
          }, {
            "name": "波动率",
            "key": "volatility",
            "min": 0,
            "max": 16.37,
            "value": 13.37
          }, {
            "name": "Treynor指数",
            "key": "treynorRatio",
            "min": -0.0097,
            "max": -0.0079,
            "value": -0.0088
          }, {
            "name": "信息比率",
            "key": "informationRatio",
            "min": -0.1489,
            "max": 0.1343,
            "value": -0.1354
          }, {
            "name": "Beta系数",
            "key": "beta",
            "min": 0.0000,
            "max": 0.9457,
            "value": 0.8597
          }
        ]
      },
      "assetAllocation": [
        [
          "股票", "@float(0,100,0,2)"
        ],
        [
          "基金", "@float(0,100,0,2)"
        ],
        [
          "期货", "@float(0,100,0,2)"
        ],
        [
          "债券", "@float(0,100,0,2)"
        ],
        ["其他", "@float(0,100,0,2)"]
      ],
      "products": {
        "columns": [
          {
            "value": "项目名",
            "key": "name"
          }, {
            "value": "累计收益率",
            "key": "returnRate"
          }, {
            "value": "最下累计收益率",
            "key": "minReturnRate"
          }, {
            "value": "最大累计收益率",
            "key": "maxReturnRate"
          }, {
            "value": "Beta系数",
            "key": "beta"
          }, {
            "value": "最大回撤率",
            "key": "maxDrawdown"
          }, {
            "value": "波动率",
            "key": "volatility"
          }, {
            "value": "净值未创新高(天)",
            "key": "daysUnderLastPeek"
          }
        ],
        "datas": [
          {
            "calmarRatio": "-3.1638", //Calmar比率
            "returnRate": "0.16%", //收益率
            "daysUnderLastPeek": "17", //净值未创新高天数
            "maxReturnRate": "1.92%", //最大收益率
            "returnRateOrig": "0.0016",
            "maxDrawdown": "3.53%", //最大回撤率
            "volatility": "13.37%", //波动率
            "informationRatio": "-0.1354", //信息比率
            "minReturnRate": "-1.68%", //最小收益率
            "jensenRatio": "-0.0115", //詹森指数
            "name": "组合",
            "sharpeRatio": "-0.8946", //夏普比率
            "treynorRatio": "-0.0088", //特雷诺指数
            "beta": "0.8597" //贝塔系数
          }, {
            "minReturnRate": "-0.17%",
            "returnRate": "1.31%",
            "maxReturnRate": "3.19%",
            "name": "基准",
            "returnRateOrig": "0.0131",
            "maxDrawdown": "N/A",
            "volatility": "11.63%"
          }, {
            "calmarRatio": "N/A",
            "returnRate": "-1.15%",
            "daysUnderLastPeek": "N/A",
            "maxReturnRate": "-1.28%",
            "returnRateOrig": "-0.0115",
            "maxDrawdown": "N/A",
            "volatility": "1.74%",
            "informationRatio": "N/A",
            "minReturnRate": "-1.51%",
            "jensenRatio": "N/A",
            "name": "额外",
            "sharpeRatio": "N/A",
            "treynorRatio": "N/A",
            "beta": "N/A"
          }
        ]
      }

    }
  })
}
